﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Nuanyang.Asp.Net.Core.Extension.DataBase;

namespace Nuanyang.Asp.Net.Core.Extension.Utils
{
    internal static class Helper
    {
        /// <summary>
        /// 重置流的指针到0位置
        /// </summary>
        /// <param name="stream"></param>
        public static void Reset(this Stream stream)
        {
            if (stream.CanSeek)
                stream.Position = 0;
        }
    }
}
